namespace utils {
    void writeFile(const char* fileName, bool res, Sta &ansSta) {
        FILE* dataFile = fopen(fileName, "w");
        fprintf(dataFile, "R%d\n", res);
        fprintf(dataFile, "W%Lf H%Lf\n", width, height);
        for (Circ x : ansSta)
            fprintf(dataFile, "x%Lf y%Lf r%Lf\n", x.x, x.y, x.r);
    }
}

using utils::writeFile;
